package com.unytech.watersoil.action.security;

import org.springframework.stereotype.Controller;

import com.unytech.watersoil.action.BaseAction;
import com.unytech.watersoil.entity.security.PermissionGroup;
import com.unytech.watersoil.service.security.PermissionGroupService;
import com.unytech.watersoil.service.security.impl.PermissionGroupServiceImpl;
import com.unytech.watersoil.utils.PermissionUtil;

@Controller("/security/permissiongroup_addAction")
public class PermissionGroupAction extends BaseAction{
	private String permgroupname;
	private String permissionsid;
	private String enableallot;
	
	PermissionGroupService permissionGroupService = new PermissionGroupServiceImpl();
	
	public String addAction()
	{
		PermissionUtil permutil = new PermissionUtil();
		String permString = permutil.getXMLString();
		getRequest().setAttribute("treestring", permString);
		
		return "permgroupadd";	
	}
	
	public String dealAdd()
	{
		PermissionGroup permgroup = new PermissionGroup();
		
		return "message";
	}
	
	
	public String getPermgroupname() {
		return permgroupname;
	}

	public void setPermgroupname(String permgroupname) {
		this.permgroupname = permgroupname;
	}

	public String getPermissionsid() {
		return permissionsid;
	}

	public void setPermissionsid(String permissionsid) {
		this.permissionsid = permissionsid;
	}

	public String getEnableallot() {
		return enableallot;
	}

	public void setEnableallot(String enableallot) {
		this.enableallot = enableallot;
	}
}
